package com.gzhryc.shared_device.cdcz.code.dao.models;

import com.gzhryc.common.NumberTools;

import java.util.ArrayList;
import java.util.List;

public class CDCZPowerIntervalMoneyContent {

    private List<Item> items;

    public CDCZPowerIntervalMoneyContent(){
        this.items = new ArrayList<>();
    }

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }

    public static class Item {

        private Double minPower;
        private Double maxPower;
        private Long money;

        public Double getMinPower() {
            return minPower;
        }

        public void setMinPower(Double minPower) {
            this.minPower = minPower;
        }

        public Double getMaxPower() {
            return maxPower;
        }

        public void setMaxPower(Double maxPower) {
            this.maxPower = maxPower;
        }

        public Long getMoney() {
            return money;
        }

        public void setMoney(Long money) {
            this.money = money;
        }

        public String getMoneyStr(){
            return NumberTools.getMoneyLiStr(money);
        }
    }
}
